<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!-- 引入struts2的标签 -->
<%@taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title>修改用户【${username}】</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" href="<%=request.getContextPath()%>/css/main.css" type="text/css"/>
  </head>
  
  <body>
   <jsp:include page="nav.jsp"/>
   
   <s:form action="user_update.action" method="post">
   		<s:hidden name="id"/>   	
   		<s:textfield label="用户昵称" name="nickname" />   	
   		<s:textfield label="用户邮箱" name="email" />
   		<s:select list="#ds" listKey="id" listValue="name" name="depId"  value="%{department.id}" label="用户所在部门"/>
   		<s:radio list="#{'0':'普通用户','1':'管理员' }" listKey="key" listValue="value" label="用户类型" name="type"/>
   		<s:submit value="修改用户" />
   </s:form>
   
  </body>
</html>